/**
 * 异常处理.
 *
 * @author guojunlong@tuniu.com (Allen Guo)
 * @copyright Copyright &copy; 2006-2016 Tuniu.com
 */
'use strict';

module.exports = class {
    exception() {
        if(this.res.statusCode == 404) {
            this.res.htmlRender(this.req.params, false, "site/404");
        } else {
            this.res.htmlRender(this.req.paramsx);
        }
    }
}
